this._contact.disconnect(this._notifyAvatarId);
this._contact.disconnect(this._presenceChangedId);
- if (this._timestampTimeoutId)
- Mainloop.source_remove(this._timestampTimeoutId);
-
this.parent(reason);
},
this._timestampTimeoutId = 0;
},
+ destroy: function(reason) {
+ if (this._timestampTimeoutId)
+ Mainloop.source_remove(this._timestampTimeoutId);
+ this._timestampTimeoutId = 0;
+ this.parent(reason);
+ },
+
/**
* appendMessage:
* @message: An object with the properties:
// Reset the old message timeout
if (this._timestampTimeoutId)
Mainloop.source_remove(this._timestampTimeoutId);
+ this._timestampTimeoutId = 0;
let message = { realMessage: props.group != 'meta',
showTimestamp: false };